// packageF/others/customerCenter/component/userDetail/goodsItem/goodsItem.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    order:{
      type:null
    },
    detailUrl:{
      type:null
    },
    orderType:{
      type:null
    },
    memberId:{
      type:null
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    isLeaseGoods: false,
  },
  lifetimes: {
    attached() {
      let language = wx.getStorageSync("langIndex");
      this.setData({
        language: language.en,
      });
    },
  },
  /**
   * 组件的方法列表
   */
  methods: {
    toGoodDetail(e){
      let id = e.currentTarget.dataset.id;
      let ordertype = e.currentTarget.dataset.ordertype;
      wx.navigateTo({
        url: '/packageA/member/orderdetail/orderdetail?order_id='+id+'&orderType='+ordertype+'&keywork=customer'+'&memberId='+this.data.memberId,
      })
    }
  }
})
